package com.example.Words.room.model.entity;

/**
 * <pre>
 *  author:huletian
 *  time    :2020/2/22
 *  desc    :实体类
 *  version:1.0
 * </pre>
 */

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class Word {
    @PrimaryKey(autoGenerate = true)
    private int id;
    @ColumnInfo(name = "english_word")
    private String word;
    @ColumnInfo(name = "chinese_meaning")
    private String chineseMeaning;
    @ColumnInfo(name = "bar_data")
    private String bar;
    @ColumnInfo(name = "foo_data")
    private String foo;
    @ColumnInfo(name = "chinese_invisible")
    private boolean chineseInvisible;
    public String getFoo() {
        return foo;
    }

    public void setChineseInvisible(boolean chineseInvisible) {
        this.chineseInvisible = chineseInvisible;
    }

    public void setFoo(String foo) {
        this.foo = foo;
    }

    public Word(String word, String chineseMeaning){
        this.chineseMeaning=chineseMeaning;
        this.word=word;
    }
    public String getBar() {
        return bar;
    }

    public void setBar(String bar) {
        this.bar = bar;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public void setChineseMeaning(String chineseMeaning) {
        this.chineseMeaning = chineseMeaning;
    }

    public int getId() {
        return id;
    }

    public String getWord() {
        return word;
    }

    public String getChineseMeaning() {
        return chineseMeaning;
    }

    public boolean isChineseInvisible() {
        return chineseInvisible;
    }
}

